﻿
using IDarling.BLL.Parser;
using IDarling.Entity;
using NPortableEngine;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace IDarling.BLL
{
    public class ADXiuService
    {
        public async Task<ScouterBackData> GetXiuConvers(string token, string uid, string type, string status, int limit, int page)
        {
            Dictionary<string, object> bodyDic = new Dictionary<string, object>();
            bodyDic.Add("token", "LW3vpHeB0DU=");
            bodyDic.Add("uid", "301");
            bodyDic.Add("type", "0");
            bodyDic.Add("status", "1");
            bodyDic.Add("limit", 15);
            bodyDic.Add("page", 0);

            ScouterBackData backData = await new HttpQueryer().RequestAsync(ServiceConsts.APPURL + "&mod=Public&act=showCover", HttpMethodType.POST, ReqType.JSON)
                .Params(bodyDic)
                .Decompress(null)
                .Parse(new AIDAXiuParser())
                .InMode(ReqMode.WEIGHT)
                .Fly(typeof(List<AIDAXiuEntity>));

            return backData;
        }
    }
}
